home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ffffssssyyyynnnncccc((((2222)))) ffffssssyyyynnnncccc((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- _ffff_ssss_yyyy_nnnn_cccc, _ffff_dddd_aaaa_tttt_aaaa_ssss_yyyy_nnnn_cccc - synchronize a file's in-memory state with that on the
- physical medium
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_uuuu_nnnn_iiii_ssss_tttt_dddd_...._hhhh_>>>>
-
- iiiinnnntttt ffffssssyyyynnnncccc((((iiiinnnntttt ffffiiiillllddddeeeessss))));;;;
- iiiinnnntttt ffffddddaaaattttaaaassssyyyynnnncccc((((iiiinnnntttt ffffiiiillllddddeeeessss))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _ffff_ssss_yyyy_nnnn_cccc moves all modified data and attributes of _f_i_l_d_e_s to a storage
- device. When _ffff_ssss_yyyy_nnnn_cccc returns, all in-memory modified copies of buffers
- associated with _f_i_l_d_e_s have been written to the physical medium. _ffff_ssss_yyyy_nnnn_cccc
- is different from _ssss_yyyy_nnnn_cccc, which schedules disk I/O for all files but
- returns before the I/O completes.
-
- _ffff_ssss_yyyy_nnnn_cccc should be used by programs that require that a file be in a known
- state. For example, a program that contains a simple transaction
- facility might use _ffff_ssss_yyyy_nnnn_cccc to ensure that all changes to a file or files
- caused by a given transaction were recorded on a storage medium.
-
- _ffff_dddd_aaaa_tttt_aaaa_ssss_yyyy_nnnn_cccc is the same as _ffff_ssss_yyyy_nnnn_cccc, except that it only moves all the
- modified data, and not the attributes of _f_i_l_d_e_s to a storage device.
-
- _ffff_ssss_yyyy_nnnn_cccc and _ffff_dddd_aaaa_tttt_aaaa_ssss_yyyy_nnnn_cccc fail if one or more of the following are true:
-
- _EEEE_BBBB_AAAA_DDDD_FFFF _f_i_l_d_e_s is not a valid file descriptor open for writing.
-
- _EEEE_NNNN_OOOO_LLLL_IIII_NNNN_KKKK _f_i_l_d_e_s is on a remote machine and the link on that machine
- is no longer active.
-
- _EEEE_IIII_NNNN_TTTT_RRRR A signal was caught during execution of the system call.
-
- _EEEE_IIII_OOOO An I/O error occurred while reading from or writing to the
- file system.
-
- _EEEE_IIII_NNNN_VVVV_AAAA_LLLL _f_i_l_d_e_s is not a valid descriptor Synchronized I/O.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, a value of 0 is returned. Otherwise, a value
- of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set to indicate the error.
-
- NNNNOOOOTTTTEEEESSSS
- The way the data reach the physical medium depends on both implementation
- and hardware. _ffff_ssss_yyyy_nnnn_cccc returns when the device driver tells it that the
- write has taken place.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _ssss_yyyy_nnnn_cccc(2)
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-